package com.che.software.testato.domain.entity.search;

import java.io.Serializable;

/**
 * Class representing a project search.
 * 
 * @author Clement HELIOU (clement.heliou@che-software.com).
 * @copyright Che Software.
 * @license GNU General Public License.
 * @see Serializable
 * @since July, 2011.
 * 
 *        This file is part of Testato.
 * 
 *        Testato is free software: you can redistribute it and/or modify it
 *        under the terms of the GNU General Public License as published by the
 *        Free Software Foundation, either version 3 of the License, or (at your
 *        option) any later version.
 * 
 *        Testato is distributed in the hope that it will be useful, but WITHOUT
 *        ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *        FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 *        for more details.
 * 
 *        You should have received a copy of the GNU General Public License
 *        along with Testato. If not, see <http://www.gnu.org/licenses/>.
 * 
 *        Testato's logo is a creation of Arrioch
 *        (http://arrioch.deviantart.com/) and it's distributed under the terms
 *        of the Creative Commons License.
 */
public class ProjectSearch implements Serializable {

	/**
	 * Constants.
	 */
	private static final long serialVersionUID = 1620287282490571831L;

	/**
	 * Members.
	 */
	private int projectId;
	private String name;

	/**
	 * Default Builder.
	 */
	public ProjectSearch() {
	}

	/**
	 * Builder from project id.
	 * 
	 * @param projectId the looked for project id.
	 */
	public ProjectSearch(int projectId) {
		super();
		this.projectId = projectId;
	}

	/**
	 * Builder from project name.
	 * 
	 * @param name the looked for project name.
	 */
	public ProjectSearch(String name) {
		super();
		this.name = name;
	}

	/**
	 * Getter for the private field value projectId.
	 * 
	 * @return the projectId field value.
	 */
	public int getProjectId() {
		return projectId;
	}

	/**
	 * Setting a value to the projectId field.
	 * 
	 * @param projectId the value to set.
	 */
	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}

	/**
	 * Getter for the private field value name.
	 * 
	 * @return the name field value.
	 */
	public String getName() {
		return name;
	}

	/**
	 * Setting a value to the name field.
	 * 
	 * @param name the value to set.
	 */
	public void setName(String name) {
		this.name = name;
	}
}